<?php
	
	$method = getParam('m','get','login');

	$username = getParam('username','post');
	$password = getParam('password','post');
	$seccode = getParam('seccode','post');
	$submit = getParam('submit','post');
	
	
	if($method == 'login')
	{
		include renderTemplate('login');
	}
	
	
	if($method == 'loginout')
	{
		setcookie("adminloginkey",'', time()-3600,'/');
		session_destroy();
		header("Location: ".SITE_URL."index.php");
		exit;
	}
	
